package com.zackeus.sipservice.constant;

import androidx.annotation.StringDef;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * SIP 账号认证方案
 * @name: AuthType
 * @author: zz
 * @date: 2022/9/15
 */
public final class AuthScheme {

    /* 摘要认证 */
    public static final String DIGEST = "digest";
    /* 明文认证 */
    public static final String PLAIN = "plain";

    @Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER})
    @Retention(RetentionPolicy.SOURCE)
    @StringDef({DIGEST, PLAIN})
    public @interface Unit {}
}
